﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace HouseKeepingPL.ViewModel
{
    public static class MyMessageBox
    {
        public static void InfoOk(string Text, string Caption)
        {
            MessageBox.Show(Text, Caption, MessageBoxButton.OK, MessageBoxImage.Information);
        }
        public static void ErrorOk(string Text, string Caption)
        {
            MessageBox.Show(Text, Caption, MessageBoxButton.OK, MessageBoxImage.Error);
        }
        public static void StopOk(string Text, string Caption)
        {
            MessageBox.Show(Text, Caption, MessageBoxButton.OK, MessageBoxImage.Stop);
        }

        public static MessageBoxResult Confirm(string Text, string Caption)
        {
            return MessageBox.Show(Text, Caption, MessageBoxButton.YesNo, MessageBoxImage.Question);
        }
    }
}
